﻿@{
    Layout = null;
}
@model System.Collections.IEnumerable
           
<!DOCTYPE html>

<html>
@Html.Partial("LoadPanelPartial")
<head> 
  @if (false) 
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
    
         <script>
             if (top.boardtop) {
                 top.boardtop.head_txt.innerText = "物品领用审批";
             }
    </script>

    @Html.DevExpress().GetStyleSheets(

                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }

)
    @Html.DevExpress().GetScripts(
                    new Script { ExtensionType = ExtensionType.ListBox }
    )

    <script type="text/javascript">
//        $(function () {
//            $("#toolMenu").smartFloat();
//        });

        function OnBeginCallback(s, e) {
            e.customArgs["command"] = e.command;
            e.customArgs["pageIndex"] = s.pageIndex;
            e.customArgs["pageCount"] = s.pageCount;
            e.customArgs["pageRowSize"] = s.pageRowSize;
            e.customArgs["pageRowCount"] = s.pageRowCount;
            var clientrdFIsEnrollObj = ASPxClientComboBox.Cast("lb");
            e.customArgs["lb"] = clientrdFIsEnrollObj.GetValue();
        }


//        function MenuTop_emClick(source, e) {
//            switch (e.item.name) {
//                case "btnAdd":
//                    {
//                        window.location.href = rootPath + "/Admin/OfficeItemUseCheck/OfficeItemUseCheckEdit";
//                        break;
//                    }
//            }
//        }

        function linkOfficeItemUseCheckEdit(no) {
            window.location.href = rootPath + "/Admin/OfficeItemUseCheck/OfficeItemUseCheckEdit?fNo=" + no;
        }

        function flashOrImg() {
            gvEditing.Refresh();
        }
    </script>

</head>
<body>
 @*<div class="floatToolMenu" id="toolMenu">
        @Html.DevExpress().Menu(settings =>
       {
           settings.Name = "toolBarMenu";
           settings.ItemAutoWidth = false;
           settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
           settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
           settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
           settings.Items.Add(item =>
           {
               item.Name = "btnAdd";
               item.Text = "审批";
               item.ClientEnabled = true;
               item.Image.Url = Url.Content("~/Content/ControlImages/edit_add.png");
           });
           settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
           settings.ItemLinkMode = ItemLinkMode.ContentBounds;
       }).GetHtml()
    </div>*@
    <table>
    <tr>
    <td style=" width:50; font-size:14">查询类别:</td>
    <td>
    @Html.DevExpress().ComboBox(settings =>
    {
        settings.Name = "lb";
          settings.Properties.DropDownStyle = DropDownStyle.DropDownList;
                   settings.Properties.ClientSideEvents.ValueChanged = "function(s,e){flashOrImg()}";
               }).BindList(new List<SelectListItem> 
                        { 
                            new SelectListItem { Text = "全部", Value = "1" }, 
                            new SelectListItem { Text = "未审批", Value = "2" },
                            new SelectListItem { Text = "通过", Value = "3" },
                            new SelectListItem { Text = "未通过", Value = "4" }
   }).GetHtml()
    </td>
    </tr>
    </table>
    @Html.Partial("OfficeItemUseCheckListPartial", Model)
</html>
